package com.kwshare.auth.service;

import com.kwshare.common.core.domain.auth.LoginUser;

import javax.servlet.http.HttpServletRequest;

/**
 * 认证中心
 *
 * @author yangjing
 */
public interface ILoginService {

    /**
     * 登录
     *
     * @param username,password 账号,密码
     * @return 结果
     */
    LoginUser login(String username, String password, HttpServletRequest httpServletRequest);

    /**
     * 退出登录
     *
     * @param httpServletRequest httpServletRequest
     */
    void logout(HttpServletRequest httpServletRequest);
}
